package pagelib;

public class CredoHome extends Page{

	
	public void openHome()
	{
		BO.open("/");
		BO.waitForPageToLoad("30000");
	}
	
	public void clickMenuItem(String menu)
	{
		clickVisibleLink(menu);
	}
	
	public void clickSubMenu(String menu, String subMenu)
	{
		BO.mouseOver(menu);
		clickVisibleLink(subMenu);
	}
	
	public boolean checkIfMenuPresent(String menu)
	{
		boolean res;
		res = isElementVisible(menu);
		return (res);
	}
	
	public boolean checkSubMenuPresent(String menu, String subMenu)
	{
		return isElementVisible(subMenu);
	}
	
		
	public boolean checkIfLinkPresent(String link)
	{
		return isElementVisible(link);
	}
}
